home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Utilities / Programming / Dialog Director 0.6 / Examples / Menu.as < prev    next >
Encoding:
Text File  |  1997-04-08  |  658 b   |  17 lines  |  [TEXT/ToyS]

  1. on run
  2.     set d to current date
  3.     set dd to d's date string
  4.     DoMenu(["One", "Two", "Three", "Four", 5, 6, 7, 8, 9, 10, 11, 12, 13 ¬
  5.         , d's time string, word 1 of dd, third word of dd, last word of dd])
  6. end run
  7.  
  8. on DoMenu(theItems)
  9.     set dItems to [¬
  10.         {class:push button, bounds:[190, 265, 250, 285], name:"OK"}, ¬
  11.         {class:push button, bounds:[110, 265, 170, 285], name:"Cancel"}, ¬
  12.         {class:static text, bounds:[10, 10, 250, 26], contents:"Choose an option:"}, ¬
  13.         {class:radio group, bounds:[20, 40, 120, 56], button offset:[105, 20], max down:10, contents:theItems} ¬
  14.             ]
  15.     get dd auto dialog {size:[260, 295], contents:dItems, timeout after:60}
  16. end DoMenu
  17.